﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Linq;

namespace LastFmClient
{
    public class Tag
    {
        public Tag(XElement el)
        {
            XElement = el;
        }

        private XElement XElement { get; set; }

        public string Name
        {
            get
            {
                return XElement.Element("name").Value;
            }
        }

        public int Count
        {
            get
            {
                return Convert.ToInt32(XElement.Element("count").Value);
            }
        }

        public string Url
        {
            get
            {
                return XElement.Element("url").Value;
            }
        }
    }
}